<?php
/**
 * Model.php 数据模型基类
 *
 *
 * @author          hyperblue
 * @version         0.1
 * @copyright       (C) 2011- *
 * @license	        http://www.bingceng.com
 * @lastmodify	    2011-08-10 14:26
 */
 
defined('BC_INC_PATH') or exit("Access Denied!");

class Model {

	protected $db_config = ''; //数据库配置

	protected $db = ''; //数据库连接
	
    /**
     * 构造函数   
     *
     */
    public function __construct() {
		global $_db_config;
        $this->db_config = $_db_config;
        
        // 初始化数据库工厂类
        Fdb::getConfig($this->db_config);
        $this->db = Fdb::factory();
		$this->pages = new pages();
    }

}
?>
